package com.chenjunlin.app.common.errorcode;


import com.chenjunlin.app.common.convention.errorcode.IErrorCode;

public enum LinkErrorCodeEnun implements IErrorCode {

    FULL_LINK_ALREADY_EXISTS("C000200","该短链接已经存在，请稍后再试"),
    GENERATE_SAME_ALWAYS("C000202","请求过于频繁，请稍后再试"),
    LINK_NOT_FOUND("C000204","未查询到要修改的链接，请重试")
    ;
    private final String code;

    private final String message;

    LinkErrorCodeEnun(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
